home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Frameworks / Sprocket Framework DR2 / Sprocket Framework / UPrinting.cp < prev    next >
Text File  |  1996-06-15  |  1KB  |  63 lines

  1. /*
  2.  
  3.     File:        UPrinting.cp
  4.     Project:    Sprocket Framework 1.1 (DR2), released 6/15/96
  5.     Contains:    Printing utilities
  6.     To Do:        ?
  7.  
  8.     Sprocket Major Contributors:
  9.     ----------------------------
  10.     Dave Falkenburg, producer of Sprocket 1.0
  11.     Bill Hayden,     producer of Sprocket 1.1
  12.     Steve Sisak,     producer of the upcoming Sprocket 2.0
  13.     
  14.     Pete Alexander        Steve Falkenburg    Randy Thelen
  15.     Eric Berdahl        Nitin Ganatra        Chris K. Thomas
  16.     Marshall Clow        Dave Hershey        Leonard Rosenthal
  17.     Tim Craycroft        Dave Mark            Dean Yu
  18.     David denBoer        Gary Powell
  19.     Cameron Esfahani    Jon Summers            Apple Computer, Inc.
  20.         
  21.     Comments, Additions, or Corrections:
  22.     ------------------------------------
  23.     Bill Hayden, Nikol Software <nikol@codewell.com>
  24.  
  25. */
  26.  
  27.  
  28.  
  29.  
  30. #if    qUseQuickDrawGX
  31.  
  32. #include "Sprocket.h"
  33.  
  34. #include "UPrinting.h"
  35.  
  36. #include <GXEnvironment.h>
  37. #include <GXGraphics.h>
  38. #include <GXPrinting.h>
  39.  
  40.  
  41. //    PrintingEventOverride is our generic event handler for QuickDrawGX.
  42. //    It allows us to handle events while the QuickDrawGX movable modal
  43. //    printing dialogs are displayed.
  44.  
  45. OSErr PrintingEventOverrideForGX(EventRecord *anEvent, Boolean filterEvent)
  46. {
  47.     if (!filterEvent)
  48.         switch (anEvent->what)
  49.             {
  50.             case mouseDown:
  51.             case keyDown:
  52.             case autoKey:
  53.                 break;
  54.  
  55.             default:
  56.                 HandleEvent(anEvent);
  57.             }
  58.  
  59.     return noErr;
  60. }
  61.  
  62. #endif
  63.